{extend name="base" /}
{block name="content"}
<div class="m-b-md">
    <h2 class="m-b-none">货品添加</h2>
</div>
<form class="form-horizontal" id="form" action="" method="post">
    <div class="panel panel-default">
        <div class="panel-body">
            {foreach name="specData" item="v"}
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">{$v['taname']}</label>
                <div class="col-sm-3">
                    <select class="form-control" name="combine[]">
                        {foreach name='v.select' item='vv'}
                        <option value="{$vv['gaid']}" >{$vv['gtvalue']}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            {/foreach}
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">库存</label>
                <div class="col-sm-9">
                    <input type="number" name="stock" value="{$oldGoodsData['stock']}" value="0" min="0">
                </div>
            </div>
            <div class="form-group">
                <label for="" class="col-sm-2 control-label">货号</label>
                <div class="col-sm-9">
                    <input type="text" name="glnumber" value="{$oldGoodsData['gnumber']}" placeholder="请输入货号">
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" name="gid" value="{:input('param.gid')}" placeholder=""/>
    <button class="btn btn-primary" type="submit">确定提交</button>
</form>
{/block}